/**
 * 判断是否为html
 * @param content 内容
 * @returns
 */
export function isHtml(content = ""): boolean {
  if (content === "") {
    return false
  }
  try {
    const fragment = new DOMParser().parseFromString(content, "text/html")
    return fragment.body.children.length > 0
  } catch (error) {}
  return false
}
